package com.lizhi.note.mapper;

import com.lizhi.note.dto.NotebookLastVisitDTO;
import com.lizhi.note.dto.NotepageDTO;
import com.lizhi.note.entity.NotebookLastVisitEntity;
import com.lizhi.note.entity.NotepageEntity;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;

import java.util.List;

@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface NotebookLastVisitMapper {
    NotebookLastVisitDTO toDto(NotebookLastVisitEntity entity);
    NotebookLastVisitEntity toEntity(NotebookLastVisitDTO dto);

    // 列表转换方法
    List<NotebookLastVisitDTO> toDtoList(List<NotebookLastVisitEntity> entities);

    List<NotebookLastVisitEntity> toEntityList(List<NotebookLastVisitDTO> dtos);
}
